package homework2;

public class Sum {
    public static void main(String[] args) {
        int i,j=0;
        for ( i=0;i<=1000;i++){
            j+=i;
        }
        System.out.println(j);
    }
}
